import request from '@/utils/request'


// 用户列表
export function userList(data) {
  return request({
    url: `/business_admin/pubDomainUser/pubBusinessUserlist`,
    method: 'post',
    data: data
  })
}

// 公域用户数统计信息
export function userCountInfo(data) {
  return request({
    url: `/business_admin/pubDomainUser/userCountInfo`,
    method: 'post',
    data: data
  })
}

// 公域用户详情
export function userDetail({customerId}) {
  return request({
    url: `/business_admin/pubDomainUser/getDetail?customerId=${customerId}`,
    method: 'get'
  })
}

//  增加会员余额
export function addBalance(data) {
  return request({
    url: '/business_admin/balance/account/addBalance',
    method: 'post',
    data: data
  })
}
//  余额记录统计
export function balanceStatistics(data) {
  return request({
    url: '/business_admin/balance/account/balanceStatistics',
    method: 'post',
    data: data
  })
}
//  余额记录列表
export function getBalanceRecord(data) {
  return request({
    url: '/business_admin/balance/record/getBalanceRecord',
    method: 'post',
    data: data
  })
}
